package com.lagou.rocketmq.service.impl;

import com.lagou.rocketmq.entity.ProductStock;
import com.lagou.rocketmq.mapper.ProductStockMapper;
import com.lagou.rocketmq.service.ProductStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductStockServiceImpl implements ProductStockService {

    @Autowired
    private ProductStockMapper productStockMapper;

    @Override
    public List<ProductStock> findAllStock() {
        return productStockMapper.findAllStock();
    }
}
